﻿using System;
using System.Runtime.InteropServices;
using com.szmxsoft.yeming.face;

namespace com.szmxsoft.yeming
{
	// Token: 0x02000005 RID: 5
	public class FaceUtil
	{
		// Token: 0x06000009 RID: 9
		[DllImport("libarcsoft_idcardveri.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
		public static extern int ArcSoft_FIC_Activate(string APPID, string SDKKey, string ACTIVE_KEY);

		// Token: 0x0600000A RID: 10
		[DllImport("libarcsoft_idcardveri.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
		public static extern int ArcSoft_FIC_InitialEngine(ref IntPtr Engine);

		// Token: 0x0600000B RID: 11
		[DllImport("libarcsoft_idcardveri.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
		public static extern int ArcSoft_FIC_FaceDataFeatureExtraction(IntPtr pEngine, int isVideo, IntPtr faceData, ref AFD_FSDK_FACERES pFaceRes);

		// Token: 0x0600000C RID: 12
		[DllImport("libarcsoft_idcardveri.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
		public static extern int ArcSoft_FIC_IdCardDataFeatureExtraction(IntPtr pEngine, ref ASVLOFFSCREEN faceData);

		// Token: 0x0600000D RID: 13
		[DllImport("libarcsoft_idcardveri.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
		public static extern int ArcSoft_FIC_FaceIdCardCompare(IntPtr pEngine, float threshold, ref float SimilarScore, ref int result);

		// Token: 0x0600000E RID: 14
		[DllImport("libarcsoft_idcardveri.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
		public static extern int ArcSoft_FIC_UninitialEngine(IntPtr pEngine);
	}
}
